package cn.kduck.code.generate.json;

import com.fasterxml.jackson.annotation.JsonProperty;

public class AiToolCallsJson {

    private int index;
    private String type;
    @JsonProperty("id")
    private String toolId;

    private FunctionCallChunk function;

    public int getIndex() {
        return index;
    }

    public String getToolId() {
        return toolId;
    }

    public void setToolId(String toolId) {
        this.toolId = toolId;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public FunctionCallChunk getFunction() {
        return function;
    }

    public void setFunction(FunctionCallChunk function) {
        this.function = function;
    }

    public static class FunctionCallChunk {
        private String name;

        private String arguments;

        public FunctionCallChunk() {
        }

        public FunctionCallChunk(String name, String arguments) {
            this.name = name;
            this.arguments = arguments;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getArguments() {
            return arguments;
        }

        public void setArguments(String arguments) {
            this.arguments = arguments;
        }

    }
}
